#ifndef __J1939TP_CONFIG_H__
#define __J1939TP_CONFIG_H__

#include "j1939tp.h"
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif
#define PGN_NUM                 32
#define J1939_TX_BUFFER_SIZE    128
#define J1939_RX_BUFFER_SIZE    128
#define J1939_SEND_QUEUE_SIZE   16
#define J1939_RECV_QUEUE_SIZE   32

#define J1939_TX_TASK_READY     (1 << 0u)
#define J1939_RX_TASK_READY     (1 << 1u)

int j1939_init(void);
int j1939tp_config(void *arg);
int j1939_init_ready(void);
void j1939_set_event(uint32_t evt);
j1939tp_runtime_t* get_runtime(void);
#ifdef __cplusplus
}
#endif
#endif  /* __J1939TP_CONFIG_H__ */






